package com.yugao.fintech.antelope.system.model.rqrs.role;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Getter
@Setter
@Schema(description = "角色响应参数")
public class RoleResp extends RoleBase {

    @Schema(description = "角色id")
    private Long id;

    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @Schema(description = "创建者用户名")
    private String createdBy;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @Schema(description = "更新者用户名")
    private String updatedBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
}
